from LibFileType import LibFileType
from Lib import Lib
from LibFile import LibFile


def jquery():
    jqueryLib = Lib('jquery', [LibFile(LibFileType.JS, "/static/lib/jquery-2.1.4.min.js")])
    return jqueryLib.print_lib_files()


def bootstrap():
    bootstrapLib = Lib('bootstrap', [LibFile(LibFileType.CSS, "/static/lib/bootstrap/css/bootstrap.min.css"),
                                     LibFile(LibFileType.JS, "/static/lib/bootstrap/js/bootstrap.min.js")])
    return jquery() + bootstrapLib.print_lib_files()


def angular():
    angularLib = Lib('jquery', [LibFile(LibFileType.JS, "/static/lib/angular.min.js")])
    return angularLib.print_lib_files()


def basic_all():
    return bootstrap() + angular()


def angular_chart():
    angular_chart_lib = Lib('jquery', [LibFile(LibFileType.CSS, "/static/lib/angular-chart/angular-chart.min.css"),
                                       LibFile(LibFileType.JS, "/static/lib/Chart.min.js"),
                                       LibFile(LibFileType.JS, "/static/lib/angular-chart/angular-chart.min.js")])
    return angular_chart_lib.print_lib_files()


solution = {'jquery': jquery(), 'bootstrap': bootstrap(), 'angular': angular(), 'angular-chart': angular_chart(),
            'basic_all': basic_all()}
